<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="file:///tmp/rsv/" />
<title>jquery_example3</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">jquery_example3</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>jquery/example_3_all_validation_rules.html</td>
	<td></td>
</tr>
<!--no input at all-->
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>assertAlertPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>regexp:field\ is\ required|email|date|today|interger|between\ 1|greater\ than 100|equal\ to\ 100|alphanumeric|favourite\ colour|exactly|in\ length|over\ 5\ characters|at\ least|prime\ number|password|gender</td>
	<td></td>
</tr>
<!--case 1. passwords match-->
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>redAPPLE@8</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password_2</td>
	<td>redAPPLE@8</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to skip other alerts</td>
</tr>
<!--case 2. passwords not match-->
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>redAPPLE@8</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password_2</td>
	<td>redAPPLE99</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please ensure the passwords you enter are the same*</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
